#pragma once
#include <time.h>
#include "SDL.h"
#define CONSTANT_VELOCITY 1
class Timer
{
private:
	int startTicks;
	int pausedTicks;	
	bool paused;
	bool started;
	float interval_ticks;
	bool init_firsttime;
public:
	Timer(void);
	void Start();//Start the time
	void Stop();	//Stop it
	int GetTicks(); //Get the ticks has been passed
	bool IsCalculatingInterval();//Let us know if is still counting.
	void FinishCalculatingInterval();	//Finish and calculate the intervals between the start and an end.
	float GetIntervals(); //Get the totals ticks count divided by 1000.
	
	
	bool IsStarted();
	bool IsPaused();
	
public:
	~Timer(void);
};
